<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/8/13
 * Time: 15:00
 */
namespace app\models;

use Yii;
class LiveActor extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%actor}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['wechat_app_id'], 'integer'],
            [['wechat_app_id','actor_name'], 'required'],
//            [['cert_pem', 'key_pem'], 'string'],
//            [['org_name','app_name', 'client_id', 'client_secret'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'wechat_app_id' => '小程序id',
            'actor_name'=>'用户名',
//            'user_id' => 'User ID',
        ];
    }
}

